Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generalize interpolaters to not need or use extra values in a directi… #3415

Merged
merged 11 commits into from
Jul 16, 2023

Conversation

asalmgren
Copy link
Member

…on for which the refinement ratio is 1

Summary

The previous version of the interpolation routines in AmrCore would grow the "CoarseBox" in all directions even if one of the directions had refinement ratio 1. This PR changes that behavior so the CoarseBox is not grown, and slopes are not computed, in any direction for which the refinement ratio is 1.

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • [X ] add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

@WeiqunZhang
Copy link
Member

We may need to update all the interpolation kernels including do_linear_limiting=true and RZ.

@WeiqunZhang WeiqunZhang merged commit 01b750d into AMReX-Codes:development Jul 16, 2023
@asalmgren asalmgren deleted the fix_interp_for_ratio1 branch July 16, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants